package com.waimai.db.service;

import java.util.List;
import java.util.Map;

import com.waimai.db.entity.Comment;
import com.waimai.db.entity.Order;
import com.waimai.db.entity.ReceiveAddress;
import com.waimai.db.entity.User;

public interface UserService {
	public User checkUser(User user);
	public User checkPhone(String phone);
	public User addUser(User user);
	public User updateUser(User user);
	public List<ReceiveAddress> getAddresses(Integer userId);
	public ReceiveAddress addAddress(ReceiveAddress address);
	public ReceiveAddress updateAddress(ReceiveAddress address);
	public Order getOrder(Integer orderId);
	public List<Order> getOrders(Integer userId);
	public ReceiveAddress deleteAddress(Integer addressId);
	public Comment addComment(Integer orderId, Comment comment);
	public List<User> getUsers();
	public List<Map<String, Object>> getReceiveAddresses();
	public List<Map<String, Object>> getCommentsByUserId(int userId);
}
